package com.tjbklx1.pattern.abfactory.demo1;

public class TestApp {
	
	public static void main(String[] args) {
		
		HumanFactory factory = new MaleFactory();
		Human human = factory.createWhiteHuman();
		human.getSex();
		
		HumanFactory factory2 = new FemaleFactory();
		Human human2 = factory2.createWhiteHuman();
		human2.getSex();
		
	}
}
